Linux From Scratch Home

Category

Technical Guides

18 articles

CVE Season Never Ends: Building a Personal Update Discipline for Source-Compiled Systems

CVE Season Never Ends: Building a Personal Update Discipline for Source-Compiled Systems

When glibc or OpenSSL ships a critical patch, hand-built systems can't simply run 'dnf upgrade' and move on. This guide walks through constructing a repeatable update workflow — from monitoring security advisories to scripting dependency-aware rebuilds — so your bespoke Linux installation stays a maintained asset rather than a slow-motion liability.

Taking Command of the First Second: Bootloader Craftsmanship for Hand-Built Linux

Taking Command of the First Second: Bootloader Craftsmanship for Hand-Built Linux

Copying a working GRUB configuration is the path most LFS builders take, but the boot process remains one of the last fully customizable layers of a from-source system. This guide compares building GRUB, Limine, and direct EFI stub setups from scratch, and weighs each option's impact on boot time, disk encryption, and recovery.

Nothing Proprietary, Nothing Missing: Assembling a Zero-Cost LFS Toolchain

Nothing Proprietary, Nothing Missing: Assembling a Zero-Cost LFS Toolchain

An LFS build demands a surprising range of tools — editors, partitioners, disk imagers, version control — and none of them need to cost a cent. This walkthrough maps every stage of the build to a free software equivalent, proving that a fully open toolchain is within anyone's reach.

Caught in the Dependency Web: When Hand-Built Systems Still Force You to Start Over

Caught in the Dependency Web: When Hand-Built Systems Still Force You to Start Over

Building a Linux system from source is a profound exercise in control—until the moment a version conflict in a common utility unravels hours of careful work. This guide examines the structural reasons LFS builders repeatedly encounter dependency friction, and offers concrete frameworks for deciding when compiling from source is the right call and when it simply is not.

Blind Spots in the Build Chain: Closing the Security Gap in Hand-Compiled Linux Systems

Blind Spots in the Build Chain: Closing the Security Gap in Hand-Compiled Linux Systems

Building every component from source grants extraordinary control over your Linux system, but that same autonomy can quietly introduce significant security blind spots. Without automated patch management, LFS builders must establish deliberate workflows to track vulnerabilities, audit their toolchains, and ensure that nothing slips through the gaps. This guide examines the structural security challenges unique to custom-compiled systems and offers actionable strategies for addressing them.

Beyond x86: A Practical Guide to Cross-Compiling LFS for ARM, RISC-V, and Embedded Targets

Beyond x86: A Practical Guide to Cross-Compiling LFS for ARM, RISC-V, and Embedded Targets

Linux From Scratch was conceived on x86 hardware, but its methodology translates remarkably well to ARM single-board computers, RISC-V development boards, and a wide range of embedded platforms. Cross-compiling an LFS system for a foreign architecture introduces a distinct set of toolchain challenges, but the payoff—a fully understood, minimal Linux environment running on custom hardware—is well worth the effort. This guide walks through the process from toolchain construction to first boot on n

Diminishing Returns in the .config File: A Pragmatic Guide to Kernel Tuning for LFS Builders

Diminishing Returns in the .config File: A Pragmatic Guide to Kernel Tuning for LFS Builders

Kernel customization is one of the most compelling reasons to build Linux from scratch, but the line between meaningful optimization and counterproductive tinkering is thinner than many builders expect. This guide examines real-world performance data, common configuration pitfalls, and a decision framework to help LFS developers invest their tuning effort where it genuinely counts.

Selecting Your System's Heartbeat: A Practical Comparison of Init Systems for LFS Builders in 2024

Selecting Your System's Heartbeat: A Practical Comparison of Init Systems for LFS Builders in 2024

Before a single package is compiled, every Linux From Scratch builder faces a consequential architectural decision: which init system will serve as the foundation for process management and system startup. This guide examines systemd, SysVinit, and OpenRC across the dimensions that matter most to LFS practitioners—performance characteristics, configuration complexity, community support, and suitability for different deployment contexts.